import java.util.Scanner;

public class Main1427 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] arr = new int[n];
        for (int i = 0; i < n; i++) {
            arr[i] = sc.nextInt();
        }
        int s=0;
        int max=0;
        for (int i=0;i<n;i++){
            s=s+arr[i];
            if (arr[i]>max)
                max=arr[i];
        }
        System.out.println(String.format("%.1f",(s-max+max*0.9)*0.9));
    }
}
